package bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
public class Params {
    private Map<String,String> secureParams;

    public String getSecureParams(String key) {
        return secureParams.get(key);
    }

    @Autowired
    @Qualifier("secureParams")
    public void setSecureParams(Map<String, String> secureParams) {
        this.secureParams = secureParams;
    }

    public static class Constants{
        public static final String PUBLIC_KEY = "publicKey";
        public static final String PRIVATE_KEY = "privateKey";
    }
}
